package com.xr.miniprogram.controller.service;

import java.util.List;
import javax.servlet.http.HttpServletResponse;

import io.swagger.annotations.Api;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xr.common.annotation.Log;
import com.xr.common.core.controller.BaseController;
import com.xr.common.core.domain.AjaxResult;
import com.xr.common.enums.BusinessType;
import com.xr.miniprogram.domain.MiniProgramDescription;
import com.xr.miniprogram.service.IMiniProgramDescriptionService;
import com.xr.common.utils.poi.ExcelUtil;
import com.xr.common.core.page.TableDataInfo;

/**
 * 服务说明Controller
 *
 * @author wls
 * @date 2023-10-16
 */
@Api("小程序服务说明控制")
@RestController
@RequestMapping("/miniprogram/description")
public class MiniProgramDescriptionController extends BaseController
{
    @Autowired
    private IMiniProgramDescriptionService miniProgramDescriptionService;

    /**
     * 查询服务说明列表
     */
    @GetMapping("/list")
    public AjaxResult list(MiniProgramDescription miniProgramDescription)
    {
        List<MiniProgramDescription> list = miniProgramDescriptionService.selectMiniProgramDescriptionList(miniProgramDescription);
        return success(list);
    }
}
